#!/bin/bash

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

# setup the networks topology on all hosts of e2e scenarios

cat >> ~/.profile << EOF
PREFIX=24

NET1=192.168.3.0/24
UE1_P1=192.168.3.4
EDGE1_P1=192.168.3.5
EDGE1_CNF_NET1_IFIP=192.168.3.7

NET2=192.168.4.0/24
UE2_P1=192.168.4.4
EDGE2_P1=192.168.4.5
EDGE2_CNF_NET2_IFIP=192.168.4.7

NET3=10.10.10.0/24
HUB_P1=10.10.10.4
EDGE1_P2=10.10.10.5
HUB_CNF_NET3_IFIP=10.10.10.6
EDGE1_CNF_NET3_IFIP=10.20.10.7

NET4=10.10.20.0/24
HUB_P2=10.10.20.4
EDGE2_P2=10.10.20.5
HUB_CNF_NET4_IFIP=10.10.20.6
EDGE2_CNF_NET4_IFIP=10.10.20.7

# overlay net,  no OIP for HUB
O_TUNNEL1_NET=172.16.30.0/24
O_TUNNEL1_EDGE1_IP=172.16.30.5
O_TUNNEL1_EDGE2_IP=172.16.30.6
O_TUNNEL1_HUB_IP=172.16.30.1

EOF

source ~/.profile
